package com.hsy.dormmanage.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hsy.dormmanage.model.Student;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 包名:com.hsy.dormmanage.dao
 * 用户:86182
 * 时间:20211110:222021/11/9
 */
@Mapper
public interface StudentDao extends BaseMapper<Student> {
    //List<Student> queryAllStudent();

    //根据用户id和密码查询用户，用于登录判断
    Student queryById(long id,String pwd);

    //每栋宿舍已打卡人数,参数为楼栋id
    List<Student> queryClockStudent(long id);

    //每栋宿舍未打卡人数,参数为id，查询子列表
    List<Student> queryNoClockStudent(long id);

    //查询宿舍名
    String queryDormNameById(Long id);
}
